import { loadComponent, remoteComponent } from "./remoteTest";

const remoteUrl = "http://localhost:8080/remoteEntry.js";

const componentLoads: Array<() => Promise<any>> = [
  () => loadComponent("federation", "./TestComponent.vue", remoteUrl),
  () => loadComponent("federation", "./TestUtil.ts", remoteUrl),
];

const res = await remoteComponent(componentLoads);

const { default: TestComponent } = res[0];
const { default: TestUtil } = res[1];
export { TestComponent, TestUtil };
